package com.david.jetpack.navigate

import android.os.Bundle
import android.view.LayoutInflater
import androidx.appcompat.app.AppCompatActivity
import com.david.jetpack.JetPackApplication
import com.david.jetpack.R
import com.david.jetpack.databinding.ActivityNavigateTestBinding

//参考链接：https://developer.android.google.cn/guide/navigation/navigation-getting-started?hl=zh-cn
class NavigateActivity : AppCompatActivity() {
    //属性中初始化context还未初始化，此时fragment中使用activity的context会报错
    private lateinit var binding: ActivityNavigateTestBinding


    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        binding = ActivityNavigateTestBinding.inflate(LayoutInflater.from(this))
        setContentView(binding.root)
//        setContentView(R.layout.activity_navigate_test)
    }
}